package com.example.emqx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("devices_emq_status")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DevicesEmqStatus {
    // 主键
    @TableId(type = IdType.INPUT,value ="clientid" )
    private String clientId;
    private int status;
    private int receiveMaximum;
    private String mountPoint;
    private String isBridge;
    private String protoName;
    private String protoVer;
    @TableField("username")
    private String userName;
    private int keepalive;
    private String sockname;
    private String peername;
    private String event;
    private String node;
    private Date time;

}
